<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>

<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>查找商品</title>
	
	
	
	    <link rel="stylesheet" href="<%= request.getContextPath() %>/webfile/container.css" />
    <link rel="stylesheet" href="<%= request.getContextPath() %>/webfile/meituan.css"/>

   
  <meta http-equiv="Content-Type" content="text/html; charset=gb2312" /></head>
  <style>
 .button{
	BORDER-RIGHT: #92d6d9 1px solid; BORDER-TOP: #82d0d4 1px solid; BACKGROUND: #63c5c8; PADDING-BOTTOM: 0px; BORDER-LEFT: #4d989b 1px solid; CURSOR: pointer; COLOR: #fff;
}
  
  
  
  </style>
  
  
  
  <body>

 
  
  
   <div id="bdw" class="bdw" align="center" >
<div id="bd" class="cf"  ><div id="about">
	<div id="content" class="about" style="margin-left:100px">
        <div class="mainbox">
		
	
	
  <table ><tr><td>	请输入您要查找的商品名称&nbsp;<input name="text" id="jiguo" type="text" value="" class="f-input"> &nbsp; <input type="button" onClick="seach()" class="button" value="查找"><hr /></td></tr>
  <tr><td>	请选择您要查找的品牌
     <select id="brand"  name="brand">
     
     
     
     
     </select>
  
    
  <input type="button" onClick="seach2()" class="button" value="查找"><hr /></td></tr>
  
  
  <tr><td>	根据价格区间查找&nbsp;
                 <input type="button" width="40px" onclick="seach3()" class="button" value="1000-3000元" /> 
				<input type="button" onclick="seach4()" class="button" value="3000-5000元" /> 
				<input type="button" onclick="seach5()" class="button" value="5000元以上" /> 
  
  </td></tr>
  
  
  
  
  
  </table>
 
  
  
  </div></div></div></div></div>

  
  </body>
  <script>
  
   function seach(){
  var ji= $("jiguo").value
   if(ji==null||ji==""){
     alert("请输入查询条件");
   }else{

      location.href="<%=request.getContextPath()%>/seach?method=seach&ji="+ji+"";
   
   
   }

   
   }
   
      function seach2(){
  var brand= $("brand").value;
   

      location.href="<%=request.getContextPath()%>/seach?method=seach2&brand="+brand+"";
   
   
   }

      function seach3(){
  var kai='1000';
  var shu='3000';
      location.href="<%=request.getContextPath()%>/seach?method=seach3&kai="+kai+"&shu="+shu+"";
   
   
   }
   
         function seach4(){

  var kai='3001';
  var shu='5000';
      location.href="<%=request.getContextPath()%>/seach?method=seach3&kai="+kai+"&shu="+shu+"";
   
   
   }
   
   
   
         function seach5(){
  var kai='5001';
  var shu='99999999';
      location.href="<%=request.getContextPath()%>/seach?method=seach3&kai="+kai+"&shu="+shu+"";
   
   }

   
   
   
   
   
 function $(dname){
  return document.getElementById(dname);
   
 }
  
  
  
  </script>
  
  
  
</html>
